﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.EventBus.Abstractions;

/// <summary>
/// 事件处理器
/// </summary>
/// <typeparam name="TEventData">事件类型</typeparam>
public interface IEventHandler<TEventData> where TEventData : new ()
{
   
    Task ExecuteAsync(TEventData value, IDictionary<string, string> heads);
}